//
//  CardEditCellDelegate.h
//  Guazi
//
//  Created by koolearn on 11-6-5.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TextFieldCellDelegate.h"
#import "Card.h"

#define kTagName 101
#define kTagMobile 102
#define kTagCompony 201
#define kTagPosition 202
#define kTagAddress 203
#define kTagTel 301
#define kTagFax 302
#define kTagPostcode 303
#define kTagEmail 304


@interface CardEditCellDelegate : NSObject <TextFieldCellDelegate, UITextFieldDelegate> {
    BOOL isNew;
    Card* card;
	
	UITextField* currentTextField;
}


@property (nonatomic, retain) Card* card;
@property (nonatomic, assign) BOOL isNew;
@property (nonatomic, retain) UITextField* currentTextField;


- (void) setValueByTextField:(UITextField*)textField;

@end
